package com.lijinjiang.servlet;

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

/**
 * @ClassName Demo01
 * @Description 第一个 Servlet Demo
 * @Author Li
 * @Date 2022/9/22 15:05
 * @ModifyDate 2022/9/22 15:05
 * @Version 1.0
 */
@WebServlet(value = "/demo01",loadOnStartup = 1)
public class Demo01 implements Servlet {

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("第一个 Servlet Demo");
    }

    @Override
    public void init(ServletConfig servletConfig) throws ServletException {

    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
